<div class="left_comlumds">
				<!-- hotline -->
				<?php 
				$mySetting_company_support_online = get_option("mySetting_company_support_online");
				$mySetting_company_support_online = explode("-", $mySetting_company_support_online);
				?>
				<div class="hotline">
					<img src="<?php echo WP_MYSITE_TEMPLATE_URL;?>/images/bg_hotline.jpg" alt="" />
						<a class="livechat" href="ymsgr:SendIM?<?php echo $mySetting_company_support_online[0];?>" title="<?php echo $mySetting_company_support_online[1];?>" rel="nofollow">
		                    <img src="http://mail.opi.yahoo.com/online?u=<?php echo $mySetting_company_support_online[0];?>&amp;m=g&amp;t=1" alt="Tư Vấn"/>
		                </a>
					<p>Hotline: <?php echo get_option("mySetting_company_hotline");?></p>
				</div>
				<!-- end hotline-->
				<!-- tin  moi -->
				<?php 
				//$tinmoi = db_query_all_post_in_post_type(4, 'news-event', 'date', 'DESC', $wpdb->prefix.'display', 'display');
				$tinmoi = db_query_post_in_posttype_2meta_key_nopaged(4, 'news-event', 'date', 'DESC', $wpdb->prefix.'display', 'display', $wpdb->prefix.'on-sidebar', 'display');
				query_posts($tinmoi);
				//print_r(query_posts($tinmoi));
				?>
				<div class="tinmoi">
					<div class="title_spmoi">Tin mới</div>
					<div class="content_tintuc">
						<!-- tinmoi-1 -->
						<?php 
						if(have_posts())
						{
							$step=1;
							while (have_posts())
							{
								the_post();
								$post_id = get_the_ID();
								$title = get_the_title($post_id);
								$perlink = get_permalink($post_id);
								$alt = db_get_alt_attachment_id($post_id, $wpdb->prefix.'thumbnail');
								if(!$alt)
									$alt = db_vietnamese_slug($title);
								$thumbnail = db_get_post_meta($post_id, $wpdb->prefix.'thumbnail');
								if($step==1)
								{
								?>
								<div class="top_tintuc">
									<a href="<?php echo $perlink;?>">
										<img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $thumbnail;?>&w=65&h=65" border="0" " alt="<?php echo $alt;?>"/>
									</a>
									<b>
									<a href="<?php echo $perlink;?>"><?php echo db_shortDesc($title, 25);?></a>
									</b><br />
									<?php 
									echo db_shortDesc(get_the_content(), 100);
									?>
										
								</div>
								<!-- end tinmoi-1 -->
								<img src="<?php echo WP_MYSITE_TEMPLATE_URL;?>/images/li_home.png" alt="" />
								<?php 	
								}
								else 
								{
								?>
								<div class="bottom_tintuc" <?php if($step==4) echo 'style="background:none"';?>>
									<img src="<?php echo WP_MYSITE_TEMPLATE_URL;?>/images/icon_tintuc.jpg" alt="" />
									<a href="<?php echo $perlink;?>"><?php echo db_shortDesc($title, 30);?></a>
								</div>
								<?php 		
								}
								$step++;
							}
							wp_reset_query();
						}
						?>
						
					</div>
				</div>
				
				
				<div class="img_shadow"><img src="<?php echo WP_MYSITE_TEMPLATE_URL;?>/images/shadow_sptb_bottom.jpg" alt="" /></div>
				<!-- end tin  moi-->
				<!-- sp_tiubiu -->
				<div class="tinmoi">
					<div class="title_spmoi">Sản phẩm tiêu biểu	</div>
					<div class="content_sptb">
						<?php 
						$sanphamtieubieu = db_query_post_in_posttype_2meta_key_nopaged(3, 'post', 'date', 'DESC', $wpdb->prefix.'display', 'display', $wpdb->prefix.'hot-product', 'display');
						$tieubieu = new WP_Query($sanphamtieubieu);
						if($tieubieu->have_posts())
						{
							while ($tieubieu->have_posts())
							{
								$tieubieu->the_post();
								$post_id = get_the_ID();
								$title = get_the_title($post_id);
								$alt = db_get_alt_attachment_id($post_id, $wpdb->prefix.'thumbnail');
								if(!$alt)
									$alt = db_vietnamese_slug($title);
								$thumbnail = db_get_post_meta($post_id, $wpdb->prefix.'thumbnail');	
								?>
								<div class="sptb_1">
									<a href="<?php the_permalink();?>" title="<?php echo $title;?>">
										<img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $thumbnail;?>&w=164&h=138" border="0" " alt="<?php echo $alt;?>"/>
									</a>
									<h2><a href="<?php the_permalink();?>" title="<?php echo $title;?>"><?php echo db_shortDesc($title, 20);?></a></h2>
									<img class="shadow_sptb_b" src="<?php echo WP_MYSITE_TEMPLATE_URL;?>/images/shadow_sptb.jpg" alt="<?php echo $alt;?>" />
								</div>
								<?php 
							}
							wp_reset_query();
						}
						?>
												
					</div>
				</div>
				<div class="img_shadow"><img src="<?php echo WP_MYSITE_TEMPLATE_URL;?>/images/shadow_sptb_bottom.jpg" alt="" /></div>
				<!-- end sp_tiubiu -->
		</div>